package com.woniu.day8.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.day8.pojo.House;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface HouseMapper extends BaseMapper<House> {
    //通过numbers查询id
    @Select("SELECT id FROM house WHERE numbers=#{numbers}")
    House selectIdByNumbers(Integer numbers);
}
